package com.hksj.Intelligentmanagement.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

/**
 * 麻醉师信息表
 * @author chenxingqing
 */
@Data
@FieldNameConstants
@TableName("b_anesthesia")
@ApiModel(value="Anesthesia对象", description="麻醉师信息表")
public class AnesthesiaEntity extends Model<AnesthesiaEntity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "三方协助人员表(副麻、主麻)")
    @TableId("id")
    private String id;

    @ApiModelProperty(value = "主麻/副麻姓名")
    @TableField("anesthesia_name")
    private String anesthesiaName;

    @ApiModelProperty(value = "工号")
    @TableField("employee_number")
    private String employeeNumber;

    @ApiModelProperty(value = "状态(0:未禁用,1:已禁用)")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("性别")
    @TableField("sex")
    private String sex;

    @ApiModelProperty("联系方式")
    @TableField("phone_number")
    private String phoneNumber;

    @ApiModelProperty("描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "逻辑删除( 0 = 未删除 1 = 删除)")
    @TableField("del_flag")
    private Integer delFlag;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "最后修改时间")
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
